package io.xccit.menu;

import io.xccit.type.Welfare;

import java.util.Scanner;

/**
 * @author CH_ywx
 * @version 1.0
 * @create 2024/4/8
 * <p>选择菜单</p>
 */
public class SelectMenu {

    public void start() {
        System.out.println("*********Lucky LotteryNumber Selection System***********");
        System.out.println("1.Welfare \t\t 2.Sports \t\t 0.Exit");
        System.out.print("Please enter the number you would like to select: ");
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();
        SecondMenu secondMenu = new SecondMenu();
        switch (number) {
            case 1:
                secondMenu.startWelfare();
                break;
            case 2:
                secondMenu.startSports();
                break;
            case 0:
                System.exit(0);
                break;
        }
    }
}
